import {defineStore} from 'pinia'
import {ref} from 'vue'
import {type PageRequest} from '@/types/PageRequest'
import type { PayBackAO, SelectPayOrderAO, SelectPayBackOrderAO } from './PayOrderTypes'

export const usePayOrderStore =  defineStore('PayOrderStore', ()=>{
    
    // 订单
    let selectPayOrderAO = ref<SelectPayOrderAO>({})

    // 退款
    let payBackDialog = ref<boolean>(false)
    let payBackAO = ref<PayBackAO>({})

    // 退款单
    let payBackOrderDialog = ref<boolean>(false)
    let selectPayBackOrderAO = ref<SelectPayBackOrderAO>({})

    return {
        selectPayOrderAO, payBackDialog, payBackAO, payBackOrderDialog, selectPayBackOrderAO
    }
},{
    persist: true,
})

